import { Notification  } from 'element-ui';
//成功
export function success(message){
  const meg={
    title: '成功',
    message: message,
    type: 'success',
    duration: 1500
  };
  return Notification(meg);
}
//失败
export function error(message){
  const meg={
    title: '失败',
    message: message,
    type: 'error',
    duration: 1500
  };
  return Notification(meg);
}
//警告
export function warning(message){
  const meg={
    title: '警告',
    message: message,
    type: 'warning',
    duration: 1500
  };
  return Notification(meg);
}
//消息
export function info(message){
  const meg={
    title: '消息',
    message: message,
    type: 'info',
    duration: 1500
  };
  return Notification(meg);
}
